import Home from "../pages/Home/Home";
import Dai from "../pages/Dai/Dai";
import Fahuo from "../pages/Fahuo/Fahuo";
import Shou from "../pages/Shou/Shou";
import Quan from "../pages/Quan/Quan";

import { createBrowserRouter } from "react-router-dom";


export const routerlist=[
    {
        path:'/',
        element:<Quan />,
        meta:{title:'全部订单'}
    },
    {
        path:'/dai',
        element:<Dai />,
        meta:{title:'待处理'}
    },
    {
        path:'/fahuo',
        element:<Fahuo />,
        meta:{title:'待发货'}
    },
    {
        path:'/shou',
        element:<Shou />,
        meta:{title:'待收货'}
    }

]


const router=createBrowserRouter([
    {
        path:'/',
        element:<Home />,
        children:routerlist
    }
])

export default router;